****************************************
* Table B7: Democrat Vote Share: Closest Distance Specification (Continuous Treatment)
******************************************

preserve
use "$input/prec-closest-hur", clear
xtset precid

qui xtreg demosenshare_total logd didlog post i.year i.stateid , fe cl(precid)
outreg2 using "$output/tabb7.doc",  replace dec(3)   

use "$input/prec-closest-major-hur", clear
qui xtreg demosenshare_total logd didlog post i.year i.stateid , fe cl(precid)
outreg2 using "$output/tabb7.doc",   dec(3)   append

use "$input/prec-closest-hur", clear
qui xtreg demohouseshare_total logd didlog post  i.year i.stateid , fe cl(precid)
outreg2 using "$output/tabb7.doc",   dec(3)   append

use "$input/prec-closest-major-hur", clear
qui xtreg demohouseshare_total logd didlog post  i.year i.stateid , fe cl(precid)
outreg2 using "$output/tabb7.doc",   dec(3) append tex

restore
